package cn.iocoder.yudao.module.erp.controller.admin.business.order.orderaddress.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 交付地址 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OrderAddressRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11501")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("详细地址")
    private String name;

    @Schema(description = "地区编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "0012")
    @ExcelProperty("地区编号")
    private Integer areaId;

    @Schema(description = "地区名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "辽宁省 鞍山市 铁西区")
    @ExcelProperty("地区名称")
    private String areaName;

    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "辽宁省 鞍山市 铁西区")
    @ExcelProperty("详细地址")
    private String detailName;

    @Schema(description = "设为常用", example = "1")
    @ExcelProperty(value = "设为常用", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean status;

    @Schema(description = "添加时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("添加时间")
    private LocalDateTime createTime;

}